package com.fx.util;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;

/**
 * @Auther: EDZ
 * @Date: 2018-5-24 15:19:
 * @Email: 你的邮箱
 * 概要说明：该类干嘛用的
 **/
public class MD5Util {
    private static Digester md5 = new Digester(DigestAlgorithm.MD5);
    public static String digestHex(String source) {
        return md5.digestHex(source);
    }

    public static void main(String[] args) {
        System.out.println(digestHex("admin"));
    }
}
